package impl

import (
	"context"
	"github.com/bndr/gojenkins"
)

type buildAdapter struct {
	ctx     context.Context
	build *gojenkins.Build
}

func (m buildAdapter) GetResult() string {
	return m.build.Raw.Result
}

func (m buildAdapter) GetConsoleOutput() string {
	return m.build.GetConsoleOutput(m.ctx)
}
